package com.easipass.framework.eirframeworkcoredsl;

public class ArgumentNode extends AstNode {

    private final String name;

    private final String value;

    public ArgumentNode(String name, String value, int startPos, int endPos) {
        super(startPos, endPos);
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String stringify(boolean includePositionalInfo) {
        return toString();
    }

    @Override
    public void accept(Visitor visitor) {

    }

    @Override
    public String toString() {
        return "--" + name + "=" + value;
    }

}
